<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>粤教云统一认证授权-授权</title>
</head>
<style>

    .title {
        background-color: #e62129;
        height: 50px;
        padding-left: 20%;
        padding-right: 20%;
        color: white;
        line-height: 50px;
        font-size: 18px;
    }

    .title-left {
        float: right;
    }

    .title-right {
        float: left;
    }

    .title-left a {
        color: white;
    }

    .container {
        clear: both;
        text-align: center;
    }

    .btn {
        width: 350px;
        height: 35px;
        line-height: 35px;
        cursor: pointer;
        margin-top: 20px;
        border-radius: 3px;
        background-color: #e62129;
        color: white;
        border: none;
        font-size: 15px;
    }
</style>
<body>
<div class="container" style="text-align: center;padding: 5% 20%;">
    <div style="border:0;background-color: rgba(255, 255, 255, 0.4);border-radius: 0.8rem;padding: 3rem;box-shadow:0 2px 12px 0 rgb(168, 167, 167);">
        <div style="text-align: center;">
            <img style="width: 20rem;margin-bottom: 2%;"
                 src="http://www.gjs.cn/Template/Skin/GD/peSkin/images/logo.png"/>
        </div>
        <h3 th:text="${clientId}+' 请求授权'"></h3>
        <h3>该应用将获取您的以下信息</h3>
        <div th:each="item:${scopes}" style="margin-bottom: 1%;">
            <h4 th:text="${item}"></h4>
        </div>
        授权后表明你已同意 <a href="#boot" style="color: #e62129">粤教云统一认证授权协议</a>
        <form method="post" action="/oauth/authorize">

            <input type="hidden" name="user_oauth_approval" value="true">

            <div th:each="item:${scopes}">
                <input type="radio" th:name="'scope.'+${item}" value="true" hidden="hidden" checked="checked"/>
            </div>

            <button class="btn" type="submit"> 同意 / 授权</button>

        </form>
    </div>

</div>
</body>
</html>